package com.app.core.signature;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.util.Map;

@Configuration
@ConfigurationProperties(
        prefix = "app.signature"
)
public class SignatureConfig {
    private Map<String, String> keySecretMapping;
    private long verificationTime = 300000L;
    private boolean enabled;

    public SignatureConfig() {
    }

    public boolean isEnabled() {
        return enabled;
    }

    public void setEnabled(boolean enabled) {
        this.enabled = enabled;
    }

    public Map<String, String> getKeySecretMapping() {
        return this.keySecretMapping;
    }

    public void setKeySecretMapping(final Map<String, String> keySecretMapping) {
        this.keySecretMapping = keySecretMapping;
    }

    public long getVerificationTime() {
        return this.verificationTime;
    }

    public void setVerificationTime(final long verificationTime) {
        this.verificationTime = verificationTime;
    }
}
